package com.chucang.shucang.common.security.feign;

import com.chucang.shucang.common.base.constant.SecurityConstant;
import com.chucang.shucang.common.base.utils.R;
import com.chucang.shucang.common.security.feign.vo.AppUserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/9/17 17:05
 * @description 用户信息获取
 */
@FeignClient("shucang-usr")
public interface AppUserDetailService {

    @GetMapping("/usr/userbase/getUserInfoByCellPhone/{cellPhoneNum}")
    R<AppUserInfo> getUserInfoByCellPhone(@PathVariable("cellPhoneNum") String cellPhoneNum, @RequestHeader(SecurityConstant.FROM) String from);
}
